﻿using System;
using System.ComponentModel.DataAnnotations;

namespace MiniWeb.Web.Controllers.Admin.NewsManager.ViewModels
{
    public class SaveNews
    {

        public int? ID { get; set; }

        [Display(Name = "信息类别"), Required(ErrorMessage = "请输入！")]
        public int NewType { get; set; }

        [Display(Name = "顶级类别")]
        public int ParentType { get; set; }

        [Display(Name = "标题"), Required(ErrorMessage = "请输入！")]
        public string Title { get; set; }

        [Display(Name = "创建日期"), Required(ErrorMessage = "请输入！")]
        public DateTime CreateDate { get; set; }

        [Display(Name = "信息内容b"), Required(ErrorMessage = "请输入！")]
        public string Content { get; set; }

        [Display(Name = "是否热点")]
        public bool IsHot { get; set; }

         [Display(Name = "短描述")]
        public string ShortDes { get; set; }


    }
}